<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>请选择你喜欢的专栏</title>
  </head>
  <body>
    <div id="app">
      <h3>请选择你喜欢的专栏</h3>
      <span v-for="(item, index) in listBox" :key="item.id">
        <input type="checkbox" :value="item" v-model="arrIsChecked" />{{item.name}}
      </span>
        <p v-for="(item, index) in arrIsChecked" :key="item.id">{{item.name}}</p >
    </div>
  </body>
</html>
<script src="../vue.js"></script>
<script>
  new Vue({
    el: "#app",
    data: {
      listBox: [
        {id:1,name: "科幻"},
        {id:2,name: "喜剧"},
        {id:3,name: "动漫"},
        {id:3,name: "冒险"},
        {id:3,name: "科技"},
        {id:3,name: "军事"},
        {id:3,name: "娱乐"},
        {id:3,name: "奇闻"},
    ],
      isChecked: false,
      arrIsChecked:[]
    },
  });
</script>